﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;

namespace Joy.Erp.Ufida.Core
{
    public class CreateByIdExceptionFilter : IExceptionFilter
    {
        public void OnException(ExceptionContext context)
        {
            //CreateById在前端使用异步多线程执行，因此不需要返回异常
            context.ExceptionHandled = true;
            context.Result = new OkObjectResult(false);
        }
    }
}
